<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Page Title</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">

  <!-- <link rel="stylesheet" href="./css/reset.css" /> -->

  <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">

  <style>
    .list-block ul {
      background-color: #f5f5f5;
    }
    .list-block li {
      margin-top: 10px;
      background-color: #fff;
    }
  
  </style>

</head>

<body>
  <!-- page集合的容器，里面放多个平行的.page，其他.page作为内联页面由路由控制展示 -->
  <div class="page-group">
    <!-- 单个page ,第一个.page默认被展示-->
    <div class="page">
      <!-- 这里是页面内容区 -->
      <div class="content">
        <div class="content-block">
          <header class="bar bar-nav">
            <h1 class='title'>个人中心</h1>
          </header>
          <div class="content">
            <div class="list-block">
              <ul>
                <li>
                  <a href="./userInfo.html" class="item-link item-content">
                    <div class="item-inner">
                      <div class="item-title">个人资料</div>
                    </div>
                  </a>
                </li>
                <li>
                  <a href="./userSelDictop.html" class="item-link item-content">
                    <div class="item-inner">
                      <div class="item-title">我的选题</div>
                    </div>
                  </a>
                </li>
              </ul>
            </div>
            <div class="content-block">
              <div class="row">
                <div id="singout" class="col-100"><a href="#" class="button button-big button-fill button-danger">退出登录</a></div>
              </div>
            </div>
          </div>
        </div>
        <nav class="bar bar-tab">
          <a class="tab-item external active" href="../index.html">
            <span class="icon icon-home"></span>
            <span class="tab-label">主页</span>
          </a>
          <a class="tab-item external active" href="./views/user.html">
            <span class="icon icon-friends"></span>
            <span class="tab-label">个人中心</span>
          </a>
        </nav>
      </div>
    </div>

</body>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
<script src="../js/jquery-3.2.1.min.js"></script>
<script src="../js/jquery.cookie.js"></script>
<script src="../js/constant.js"></script>
<script>
  $(function () {

    var userId = $.cookie("userId");
    if(!userId) {
      cookieOpMod.clear("userId");
      window.location.href = "./login.html";
    }

    $("#singout").click(function() {
      cookieOpMod.clear("userId");
      window.location.href = "./login.html";
    })

  });
</script>

</html>